# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class LearnkuItem(scrapy.Item):
    title = scrapy.Field()  # 标题
    author = scrapy.Field()  # 作者
    vote_number = scrapy.Field()  # 点赞数
    article_id = scrapy.Field()  # 文章ID
    category_name = scrapy.Field()  # 分类名
    url = scrapy.Field()  # 文章链接
    content = scrapy.Field()  # 文章内容
    views = scrapy.Field()  # 浏览量
    reply_number = scrapy.Field()  # 评论数量
    released_at = scrapy.Field()  # 发布时间
    created_at = scrapy.Field()  # 创建时间
    updated_at = scrapy.Field()  # 更新时间


class PianshenItem(scrapy.Item):
    article_id = scrapy.Field()  # 文章id
    title = scrapy.Field()  # 标题
    thumb = scrapy.Field()  # 缩略图
    summary = scrapy.Field()  # 概要
    content = scrapy.Field()  # 内容
    url = scrapy.Field()  # 链接
